//
//  StonewtClass.hpp
//  Practice11
//
//  Created by 赵世杰 on 2020/7/26.
//  Copyright © 2020 zhaoshijie. All rights reserved.
//

#ifndef StonewtClass_hpp
#define StonewtClass_hpp

#include <stdio.h>
#include <iostream>

#endif /* StonewtClass_hpp */

using namespace std;


class Stonewt
{
private:
    enum {Lbs_per_stn = 14};
    int stone;
    double pds_left;
    double pounds;
    
public:
    Stonewt(double lbs);
    Stonewt(int stn,double lbs);
    Stonewt();
    ~Stonewt();
    void show_lbs() const;
    void show_stn() const;
    
    Stonewt operator+(const Stonewt & ston) const;
    Stonewt operator-(const Stonewt & ston) const;
    Stonewt operator*(double n) const;
    friend Stonewt operator*(double n,const Stonewt &ston);
    
    friend std::ostream & operator << (std::ostream & os , const Stonewt & t);
    
    bool operator>(const Stonewt &ston)const;
    
};





